package com.deodar.system.service.impl;

import com.deodar.common.annotation.DataSource;
import com.deodar.common.enums.DataSourceType;
import com.deodar.system.domain.LiaisonInfo;
import com.deodar.system.mapper.LiaisonInfoMapper;
import com.deodar.system.service.ILiaisonInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@DataSource(DataSourceType.SLAVE)
@Service
public class LiaisonInfoServiceImpl implements ILiaisonInfoService {
    @Resource
    private LiaisonInfoMapper liaisonInfoMapper;
    @Override
    public LiaisonInfo findByPripid(String pripid) {
        return liaisonInfoMapper.selectByPripid(pripid);
    }

    @Override
    public List<LiaisonInfo> findList(int startNd, int endNd) {
        return liaisonInfoMapper.selectList(startNd, endNd);
    }
}
